package com.broadsword.excel;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.broadsword.converter.LocalDateConverter;
import com.broadsword.converter.LocalTimeConverter;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalTime;


@Data
public class StudentExcel implements Serializable {

    @ExcelProperty("班级编号")
    private int classId;

    @ExcelProperty("姓名")
    private String name;

    @ExcelProperty("性别")
    private int gender;

    @ExcelProperty("分数")
    private int score;

    @ExcelProperty(value = "当前日期",converter = LocalDateConverter.class)
    @DateTimeFormat(value = "yyyy-mm-dd")
    private LocalDate currentDate;

    @ExcelProperty(value = "当前时间",converter = LocalTimeConverter.class)
    @DateTimeFormat(value = "HH:mm:ss")
    private LocalTime currentTime;



}
